package exsun.jt808.data.util.executorsThread;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

public class ScheduledHandle
{
    public static ScheduledHandle inst;
    public static Object instLock = new Object();


    public static ScheduledHandle getInst(){
        if(inst == null){
            synchronized (instLock){
                if(inst == null){
                    inst = new ScheduledHandle();
                }
            }
        }
        return inst;
    }

    private ScheduledExecutorService service = Executors.newScheduledThreadPool(3);

    public ScheduledExecutorService getService() {
        return service;
    }


}
